import 'package:appflutterhomeschool/route/application.dart';
import 'package:appflutterhomeschool/route/routes.dart';
import 'package:flutter/material.dart';

import 'item_customization_widget.dart';

///用户： ninetailedfox
///时间： 2020/7/1
///邮箱： 1037438704@qq.com
///功能： 资源页面的tab


class CustomizationTabBarView extends StatelessWidget {
  final int pageTab;

  CustomizationTabBarView(this.pageTab);

  @override
  Widget build(BuildContext context) {
//    CustomizationViewModel customizationViewModel = Provider.of(context);
    return ListView.builder(
        shrinkWrap: true,
        itemCount: 10,
        itemBuilder: (context, index) {
          return ItemCustomizationWidget(
            onTap: (){
              Application().navigatePushToPage(context, Routes.coureDetailsPage, {});
            },
            visibleBool1: true,
            visibleBool2: pageTab == 0,
          );
        });
  }
}




